package com.dlc.yunguang.adapter;

import com.dlc.commonlibrary.adapter.BaseRecyclerAdapter;
import com.dlc.yunguang.net.bean.RFIDSpecListBean;
import com.dlc.yunguang.R;

/**
 * Created by John on 2017/7/24.
 * 送洗出库
 */

public class LaundryAdapter extends BaseRecyclerAdapter<RFIDSpecListBean.DataBean> {
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_laundry;
    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        RFIDSpecListBean.DataBean item = getItem(position);
        holder.setText(R.id.type, item.title);
        holder.setText(R.id.num, item.count);
        holder.setText(R.id.hotel, item.hotel);
        holder.setText(R.id.office, item.office);
    }
}
